package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class BatchJobLog implements Serializable {

	private static final long serialVersionUID = -6212201272274451868L;

	//fields
	private java.lang.Integer id;
	private java.lang.String jobName;
	private java.sql.Timestamp startTime;
	private java.lang.Double seconds;
	private java.lang.String result;
	private java.lang.String memo;

	//default constructor
	public BatchJobLog() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getJobName() {
		return jobName;
	}
	public java.sql.Timestamp getStartTime() {
		return startTime;
	}
	public java.lang.Double getSeconds() {
		return seconds;
	}
	public java.lang.String getResult() {
		return result;
	}
	public java.lang.String getMemo() {
		return memo;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setJobName(java.lang.String jobName) {
		this.jobName = jobName;
	}
	public void setStartTime(java.sql.Timestamp startTime) {
		this.startTime = startTime;
	}
	public void setSeconds(java.lang.Double seconds) {
		this.seconds = seconds;
	}
	public void setResult(java.lang.String result) {
		this.result = result;
	}
	public void setMemo(java.lang.String memo) {
		this.memo = memo;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof BatchJobLog))
			return false;

		final BatchJobLog batchJobLog = (BatchJobLog)other;
		if (!this.id.equals(batchJobLog.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("BatchJobLog[")
			.append("id=").append(id).append(", ")
			.append("jobName=").append(jobName).append(", ")
			.append("startTime=").append(startTime).append(", ")
			.append("seconds=").append(seconds).append(", ")
			.append("result=").append(result).append(", ")
			.append("memo=").append(memo).append("]").toString();
	}
}